Skip to content

feat(moonbit)!: migrate annotations and remove Show support - #1782

Open
peter-jerry-ye wants to merge 1 commit into
bytecodealliance:mainfrom
peter-jerry-ye:codex/moonbit-annotation-cleanup
Open

peter-jerry-ye wants to merge 1 commit into
bytecodealliance:mainfrom
peter-jerry-ye:codex/moonbit-annotation-cleanup

Conversation

@peter-jerry-ye

Copy link
Copy Markdown
Contributor

The MoonBit generator still emits postfix derives and configures function exports in moon.pkg. Migrate generated bindings and runtime templates to #derive(...) and #export_name(...), and remove deprecated Show generation.

Export annotations are attached to the existing wrappers and realloc implementation in the package that produces the Wasm artifact. This preserves the existing export names, signatures, forwarding wrappers, and memory configuration. The derive migration preserves Debug/Eq behavior and continues to omit derives for records and variants containing futures or streams; the existing test assertions and documentation are updated accordingly.

This intentionally removes --derive-show and DeriveOpts::derive_show. Use --derive-debug for debug formatting. The change is limited to declaration syntax and removal of Show support.

Emit export_name annotations on linking-package wrappers and realloc, and use derive annotations throughout generated types and runtime templates.

BREAKING CHANGE: Remove the deprecated --derive-show option and DeriveOpts::derive_show field.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant